# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
        ('crm', '0004_auto_20150901_1713'),
    ]

    operations = [
        migrations.CreateModel(
            name='Customer',
            fields=[
                ('id', models.AutoField(serialize=False, auto_created=True, verbose_name='ID', primary_key=True)),
                ('customername', models.CharField(unique=True, max_length=20)),
                ('company', models.CharField(max_length=40)),
                ('mobile', models.IntegerField()),
                ('qq', models.IntegerField()),
                ('wangwang', models.CharField(max_length=10)),
                ('gender', models.IntegerField()),
                ('createdate', models.DateTimeField()),
            ],
        ),
        migrations.CreateModel(
            name='CustomerGroup',
            fields=[
                ('id', models.AutoField(serialize=False, auto_created=True, verbose_name='ID', primary_key=True)),
                ('groupname', models.CharField(unique=True, max_length=20)),
                ('createdate', models.DateTimeField()),
            ],
        ),
        migrations.AddField(
            model_name='customer',
            name='groupid',
            field=models.ForeignKey(to='crm.CustomerGroup', related_name='cgroup', default=True),
        ),
        migrations.AddField(
            model_name='customer',
            name='industry',
            field=models.ForeignKey(to='crm.Industry', related_name='industryforeign'),
        ),
        migrations.AddField(
            model_name='customer',
            name='level',
            field=models.ForeignKey(to='crm.Level', related_name='levelforeign', default=True),
        ),
        migrations.AddField(
            model_name='customer',
            name='saler',
            field=models.ForeignKey(to='crm.Saler', related_name='salerforeign'),
        ),
    ]
